import axios from '@/api';

/**
 * 文件上传
 * @param {*} data
 * @returns
 */
export const uploadFile = data => {
  return axios.post('api/common/uploadFile', data, {
    headers: {
      'Content-Type': 'multipart/form-data',
    },
  });
};
